package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author think
 * @description 商品信息
 */
public interface GoodsDao {



    String getMaxCode();

    /*@MapKey("goodsCode")
    Map<String, Object> listInventory(Integer goodsTypeId, String goodsCode, String goodsName);*/

    List<Goods> listInventory(@Param("page") Integer page,
                              @Param("rows") Integer rows,
                              @Param("codeOrName") String codeOrName,
                              @Param("goodsTypeId") Integer goodsTypeId);
}
